#include <iostream>
#include <string>

const int STR_LENGTH = 10;
void display(const std::string str[], int size);

int main()
{
    using namespace std;
    string list[STR_LENGTH]; // 声明STR_LENGTH长度string类型对象的数组
    for (size_t i = 0; i < STR_LENGTH; i++)
    {
        cout << i + 1 << ":";
        getline(cin, list[i]);
    }
    cout << "Your list is :" << endl;
    display(list, STR_LENGTH);

    return 0;
}

void display(const std::string str[], int size)
{
    for (size_t i = 0; i < size; i++)
    {
        std::cout << i + 1 << ": " << str[i] << std::endl;
    }
    return;
}